import axios from 'axios'


export function ax_get(url, query) {
  return axios.get(url, query)
				  .then(   (res) =>  {return res.data } )
				  .then(   (data) => ({ data })   )
				  .catch((err) => ({ err }))
}




export function ax_post(url, post_data) {
  return axios.post(url, post_data)
				  .then(   (res) =>  {return res.data } )
				  .then(   (data) => ({ data })   )
				  .catch((err) => ({ err }))
}